<template>
  <div class="footer">
    <router-link :to="toRouter1" active-class="mark">
      <div>
        <slot name="router1"></slot>
      </div>
    </router-link>
    <router-link :to="toRouter2" active-class="mark">
      <div>
        <slot name="router2"></slot>
      </div>
    </router-link>
    <router-link :to="toRouter3" active-class="mark">
      <div>
        <slot name="router3"></slot>
      </div>
    </router-link>
  </div>
</template>
<script>
import { mapMutations } from 'vuex';
export default {
  props: {
    toRouter1: {
      type: String,
      default: ''
    },
    toRouter2: {
      type: String,
      default: ''
    },
    toRouter3: {
      type: String,
      default: ''
    }
  },
}
</script>
<style lang="scss" scoped>
  .footer{
    width: 46.875rem;
    height: 5rem;
    line-height: 5rem;
    text-align: center;
    border: 2px solid white;
    box-sizing: border-box;
    background: white;
    // flex布局
    display: flex;
  }
  a{
    flex: 1;
    color: #7a7e83;
  }
  .mark{
    color: orange;
  }
</style>
